package com.bjpowernode.test01;

public class Task6 {
    public static void main(String[] args) {
        Husband h1 = new Husband("111","jack","2001-0101");
        Wife w1 = new Wife("222","jessy","2010-01-01");
        h1.wife=w1;
        w1.husband=h1;
        System.out.println(h1.wife.husband.wife.husband.wife.husband.wife.name+h1.wife.id+h1.wife.bir);
        System.out.println(w1.husband.name+w1.husband.id+w1.husband.bir);
    }
}
